# -*- coding:utf-8 -*-

from sqlalchemy import Column, ForeignKey, String, DateTime, BigInteger, SmallInteger,Integer
from config.database import BaseMixin, Base
from datetime import datetime


class PictureParse(Base):
    __tablename__ = "picture_parse"

    id = Column(BigInteger, primary_key=True, autoincrement=True, comment='岗位ID')

    name = Column(String(50), comment='节点名')

    parent_name = Column(String(50), comment='父节点名')

    parse_content_ai_math = Column(String(255), comment='AI解析内容')

    parse_content_ali = Column(String(255), comment='阿里解析内容')

    parse_result = Column(String(255), comment='解析结果')

    root_name = Column(String(50), comment='根节点名')

    type = Column(SmallInteger, comment='图片类型')

    create_by = Column(String(64), default='', comment='创建者')

    create_time = Column(DateTime, comment='创建时间', default=datetime.now())

    update_by = Column(String(64), default='', comment='更新者')

    update_time = Column(DateTime, comment='更新时间', default=datetime.now())

    dept_id = Column(Integer, default=None, comment='部门ID')

    del_flag = Column(String(1), default='0', comment='删除标志（0代表存在 2代表删除）')

